<template>
	<view>
		<view class="business">
			<view class="business-line"></view>
			<view class="business-title">
				<text> 热门推荐 </text>
			</view>
		</view>
		<view class="activity">
			<view class="activity-left">
				<u--image :showLoading="true" :src="activityLeftImage" width="95%" height="320rpx" radius="10rpx" mode="widthFix"
					:showMenuByLongpress="false"></u--image>
				<view class="activity-left-text">
					<view class="activity-left-title">
						<view>活动</view>
						<view>咨询</view>
					</view>
					<!-- <text>丰富赛事等你参加</text>
					<text>立即报名></text> -->
				</view>
			</view>
			<view class="activity-right">
				<u--image :showLoading="true" :src="childImages[0]" width="95%" height="148rpx" radius="10rpx"
					:showMenuByLongpress="false"></u--image>
				<view class="activity-right-text">
					<view class="activity-right-title">
						<view>培训</view>
						<view>服务</view>
					</view>
					<!-- <text>资深私教辅导</text>
					<text>立即预约></text> -->
				</view>
				<u--image :showLoading="true" :src="childImages[1]" width="95%" height="148rpx" radius="10rpx"
					:showMenuByLongpress="false" @click="youhuiquan"></u--image>
				<view class="activity-right-text-last"  @click="youhuiquan">
					<view class="activity-right-title-last">
						<view>优惠券</view>
						<view>发放</view>
					</view>
					<!-- <text>在家也能订场约赛</text>
					<text class="field-btn">立即预定></text> -->
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {


			}
		},
		props: {
			childImages: {
				type: Array,
				default: () => ({})
			},
			activityLeftImage: {
				type: String,
				required: true
			}
		},
		methods: {
			youhuiquan(){
				uni.navigateTo({
					url:'/pages_points/my_coupon/my_coupon'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import url("@/static/css/index/index.css");
</style>